package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.query.StrategySearchQuery;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IStrategyEsService {
    void save(StrategyTemplate strategyTemplate);

    //主题推荐查询
    List<Map<String,Object>> queryThemeCommend();

    //查询国内攻略按照省份分
    List<StatisVO> queryConditionChina();
    //查询国外攻略
    List<StatisVO> queryConditionAbroads();
    //查询主题攻略
    List<StatisVO> queryConditionThemes();
    //分页
    Page query(StrategySearchQuery qo);

    List<StrategyTemplate> findByDestName(String destName);
}
